﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Client_BookTicket_1.ascx.cs" Inherits="WebControl_Client_BookTicket_1" %>

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate> 
    <div id="chitietxe">
             		<p>Bus Type</p>
                      <asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem>----</asp:ListItem>
                      </asp:DropDownList>
                    <p>Status</p>
                      <asp:DropDownList ID="DropDownList2" runat="server">
                        <asp:ListItem>----</asp:ListItem>
                        <asp:ListItem>NotAvailable</asp:ListItem>
                        <asp:ListItem>Available</asp:ListItem>
                      </asp:DropDownList>
                      <asp:Button ID="btnsearch" runat="server" Text="Search" 
                        onclick="btnsearch_Click" />
                      <asp:Button ID="Refresh" runat="server" Text="Refresh" 
                        onclick="Refresh_Click1"/>
        <asp:Label ID="lblcheck" runat="server" Text="File Not Found" Visible="false" ForeColor="Red"></asp:Label>
     </div><!--End tag div chitietxe-->	   
    <table cellspacing="0">
        <tr class="trtieude">
        	<td align="center" width="15%">Bus Type</td>
            
            <td align="center" width="15%">Start Location</td>
            <td align="center" width="15%">End Location</td>
            <td align="center" width="15%">Date Start</td>
            <td align="center" width="10%">Time Plan</td>

            <td align="center" width="15%">Price</td>
            <td align="center" width="15%">Status</td>

            <td align="center" width="15%">Book</td>
        </tr>

<asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="IdLocation" DataKeyNames="IdLocation">
    <ItemTemplate>
        <tr class="trnoidung">
            <td align="center"><%# Eval("Name")%></td>
            <td align="center"><%# Eval("startplan")%></td>
            <td align="center"><%# Eval("endplan")%></td>
            <td align="center"><%# Eval("dateplan")%></td>
            <td align="center"><%# Eval("timeplan")%></td>
            <td align="center"><%# Eval("price")%></td>
            <td align="center"><%# Eval("status")%></td>
    
            <td><a href="BookTicket_2.aspx?idloc=<%# Eval("IdLocation") %>&idbustype=<%# Eval("IDBusType") %>&idbuscar=<%# Eval("IdBusCar") %>&seatused=<%# Eval("seatused") %>"><img src="../Images/user_edit.png" alt="" title="" border="0" /></a></td>
           
        </tr>
    </ItemTemplate>
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="IdLocation"></asp:PlaceHolder>
    </LayoutTemplate>
</asp:ListView> 
</table>
     <div class="pagination">
         <asp:DataPager ID="DataPagerForAlbums" runat="server" PagedControlID="ListView1" PageSize="10">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" FirstPageText="&laquo prev" ShowNextPageButton="False"  ShowPreviousPageButton="false" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowLastPageButton="True" LastPageText="&raquo next" ShowPreviousPageButton="False"  ShowNextPageButton="false" />
                </Fields>
         </asp:DataPager>
     </div>




        
        </p>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="DataPagerForAlbums" />
    </Triggers>
</asp:UpdatePanel> 

